projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f566f4
)
mpc5xxx/cpu_init.c: fix warning: unused variable 'gpt0'
author
Wolfgang Denk
<
[email protected]
>
Sun, 31 Jan 2010 20:58:48 +0000
(21:58 +0100)
committer
Wolfgang Denk
<
[email protected]
>
Wed, 3 Feb 2010 19:00:14 +0000
(20:00 +0100)
Signed-off-by: Wolfgang Denk <
[email protected]
>
Acked-by: Detlev Zundel <
[email protected]
>
cpu/mpc5xxx/cpu_init.c
patch
|
blob
|
history
diff --git
a/cpu/mpc5xxx/cpu_init.c
b/cpu/mpc5xxx/cpu_init.c
index b15146480b13f25d35d18e69c03fc744bab472c5..2aa6e1c82120d725e6abe9e8651d0750c0af7963 100644
(file)
--- a/
cpu/mpc5xxx/cpu_init.c
+++ b/
cpu/mpc5xxx/cpu_init.c
@@
-46,9
+46,12
@@
void cpu_init_f (void)
(struct mpc5xxx_gpio *) MPC5XXX_GPIO;
volatile struct mpc5xxx_xlb *xlb =
(struct mpc5xxx_xlb *) MPC5XXX_XLBARB;
+#if defined(CONFIG_WATCHDOG)
volatile struct mpc5xxx_gpt *gpt0 =
(struct mpc5xxx_gpt *) MPC5XXX_GPT;
+#endif /* CONFIG_WATCHDOG */
unsigned long addecr = (1 << 25); /* Boot_CS */
+
#if defined(CONFIG_SYS_RAMBOOT) && defined(CONFIG_MGT5100)
addecr |= (1 << 22); /* SDRAM enable */
#endif